#include <stdio.h>
#include <iostream>

using namespace std;

int main() {
	char str[101] = {'\0'};
	cin.getline(str, 101);
	int i, sum = 0;

	for (i = 0; '\0' != str[i]; i++)
		sum += str[i];

	printf("%x\n", sum & 0xFF);
	return 0;
}
